home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
xlbiff.z
/
xlbiff
/
man
/
catn
/
xlbiff.n
Wrap
Text File
|
1994-09-27
|
10KB
|
331 lines
XLBIFF(1) USER COMMANDS 14 October 1991
NAME
xlbiff - mailbox message previewer for X
SYNOPSIS
xlbiff [ -_o_p_t_i_o_n ... ]
DESCRIPTION
The _x_l_b_i_f_f program lurks in the background, watching your
mailbox file, waiting for new mail. When mail arrives, it
invokes the MH _s_c_a_n(1) command and pops up a window with the
results. Clicking the left mouse button anywhere in this
window makes it go away. The window will also disappear if
iconified or if the mailbox size drops to zero.
OPTIONS
_X_l_b_i_f_f accepts all of the standard X Toolkit command line
options along with the additional options listed below:
-help This option indicates that a brief summary of the
allowed options should be printed on standard out-
put.
-bottom This option tells _x_l_b_i_f_f to realize/unrealize() the
output window instead of using XtPopup/down(). This
has the effect of causing the window manager to
reposition the window each time it pops up, and is
useful for when you specify negative Y coordinates,
ie, at the bottom of the screen. Running _x_l_b_i_f_f in
this situation without -bottom would cause new lines
to run off the bottom edge of the screen.
+bottom Opposite of -bottom.
-file _f_i_l_e_n_a_m_e
This option specifies the name of the file which
should be monitored. By default, it watches
/usr/spool/mail/_u_s_e_r_n_a_m_e, where _u_s_e_r_n_a_m_e is your
login name.
-rows _h_e_i_g_h_t
This option specifies the maximum height, in lines
of text, of the _x_l_b_i_f_f window. The default is 20.
-columns _w_i_d_t_h
This option specifies the maximum width, in charac-
ters, of the _x_l_b_i_f_f window. The default is 80.
-resetSaver
If this option is set, _x_l_b_i_f_f will reset the screen
saver when new mail comes in. This is useful if
you're doing something near your workstation but not
on it.
ReadyPak 1
XLBIFF(1) USER COMMANDS 14 October 1991
+resetSaver
Opposite of -resetSaver.
-update _s_e_c_o_n_d_s
This option specifies the frequency in seconds at
which _x_l_b_i_f_f should update its display. The default
is 15 seconds.
-fade _s_e_c_o_n_d_s
Number of seconds to wait before popping window back
down. This option can be used to monitor events of
non-lasting importance, such as syslog or UUCP
queues. The default value of 0 disables the fade
option.
-led _l_e_d_N_u_m
This option specifies a keyboard LED to light up
when there is mail waiting in the _f_i_l_e. The default
is zero (do not light a LED).
-ledPopdown
This option indicates that the LED should be turned
off when xlbiff is popped down. Ordinarily the LED
stays lit to remind one of awaiting mail. This
option has no effect if the -led option is disabled.
+ledPopdown
Opposite of -ledPopdown.
-refresh _s_e_c_o_n_d_s
This option specifies the number of seconds to wait
before re-posting the mail window after you ack-
nowledge it, and it still contains the same mail.
The default is 0 (no refresh). A useful value for
this is 1800 (30 minutes).
-scanCommand _c_o_m_m_a_n_d
Specifies a shell command to be executed to list the
contents of mailbox file. The specified string
value is used as the argument to a _s_y_s_t_e_m(3) call
and may therefore contain i/o redirection. The
command's stdout is used to generate the window.
Internally, the command is generated as
sprintf(buf, scanCommand, file, columns)
so a %s and %d respectively in scanCommand will gen-
erate the values of file and columns. The default
scanCommand is
scan -file %s -width %d
ReadyPak 2
XLBIFF(1) USER COMMANDS 14 October 1991
-checkCommand _c_o_m_m_a_n_d
Specifies a shell command to be executed to check
for new mail (or some other condition) rather than
simply examining the size of the mail file. The
specified string value is used as the argument to a
_s_y_s_t_e_m(3) call and may therefore contain i/o
redirection. Like _x_b_i_f_f, an exit status of 0 indi-
cates that a change in condition demands a new
evaluation of scanCommand and subsequent popup, 1
indicates no change in status and 2 indicates that
the condition has been cleared and the _x_l_b_i_f_f window
should pop down. By default, no shell command is
provided.
This option may be useful to monitor logins (by
checking update times of /etc/utmp), using POP, and
so forth. Let your imagination go wild!
-volume _p_e_r_c_e_n_t_a_g_e
This option specifies how loud the bell should be
rung when new mail comes in.
The following standard X Toolkit command line arguments are
commonly used with _x_l_b_i_f_f:
-display _d_i_s_p_l_a_y
This option specifies the X server to contact.
-geometry +_x+_y
This option specifies the preferred position of the
scan window.
-bg _c_o_l_o_r
This option specifies the color to use for the back-
ground of the window.
-fg _c_o_l_o_r
This option specifies the color to use for the fore-
ground of the window.
-xrm _r_e_s_o_u_r_c_e_s_t_r_i_n_g
This option specifies a resource string to be used.
This is especially useful for setting resources that
do not have separate command line options.
RESOURCES
The application class name is XLbiff. It understands all of
the core resource names and classes as well as:
bottom (class Bottom)
Same as the -bottom option.
ReadyPak 3
XLBIFF(1) USER COMMANDS 14 October 1991
file (class File)
Same as the -file option.
scanCommand (class ScanCommand)
Same as the -scanCommand option.
checkCommand (class CheckCommand)
Same as the -checkCommand option.
resetSaver (class ResetSaver)
Same as the -resetSaver option.
update (class Interval)
Same as the -update option.
fade (class Fade)
Same as the -fade option.
columns (class Columns)
Same as the -columns option.
rows (class Rows)
Specifies the maximum height, in lines, of the
_x_l_b_i_f_f window. The default is 20.
led (class Led)
Same as the -led option.
ledPopdown (class LedPopdown)
Same as the -ledPopdown option.
refresh (class Refresh)
Same as the -refresh option.
sound (class Sound)
Specify a command to be run in place of a bell when
new mail arrives. For example, on a Sun Sparc you
might use:
*sound: /usr/demo/SOUND/play -v %d /usr/demo/SOUND/sounds/doorbell.au
The command is generated internally with sprintf, so
the characters ``%d'' will be replaced with the
numeric value of the volume resource.
volume (class Volume)
Same as the -volume option.
ACTIONS
_X_l_b_i_f_f provides the following actions for use in event
translations:
ReadyPak 4
XLBIFF(1) USER COMMANDS 14 October 1991
popdown()
This action causes the window to vanish.
exit() This action causes _x_l_b_i_f_f to exit.
The default translations are
<Button1Press>: popdown()
<Button3Press>: exit()
ENVIRONMENT
DISPLAY is used to get the default host and display number.
FILES
/usr/spool/mail/_u_s_e_r_n_a_m_e
default mail file to check.
SEE ALSO
_X(1), _s_c_a_n(1)
BUGS
specifying dimensions in -geometry causes badness.
The led option does not work on Suns before SunOS 4.1/X11R5.
AUTHOR
Ed Santiago, esm@auspex.com
ACKNOWLEDGEMENTS
_X_l_b_i_f_f took shape around the xgoodbye sample program in the
O'Reilly _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _P_r_o_g_r_a_m_m_i_n_g _M_a_n_u_a_l. A lot of
code was stolen from xbiff, including this man page. Thanks
also to Stephen Gildea (gildea@expo.lcs.mit.edu) for the
many, many contributions that made _x_l_b_i_f_f grow from a mid-
night hack to a more mature product.
ReadyPak 5